
const Controller = require('../../core/Controller');
const query = require('../../core/db');


class couponController extends Controller {
  constructor() {
    super();
  }
  async getCouponList(ctx) {
    let sql = 'select * from coupon where 1=1';
    let values = [];
    ctx.response.body = await query(sql, values).then( results => { return results; });
  }
}

module.exports = new couponController;
